import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/pages/main'
/*zcc start*/
import Mindex from '@/pages/main/mindex'
import Changebeauty from '@/pages/main/mindex/changebeauty'
import Beautyvideo from '@/pages/main/mindex/changebeauty/beautyvideo'
import Goddes from '@/pages/main/mindex/changebeauty/goddes'
import Showbeauty from '@/pages/main/mindex/showbeauty'
import Goodarticle from '@/pages/main/mindex/showbeauty/goodarticle'
import Showactivity from '@/pages/main/mindex/showbeauty/showactivity'
import Search from '@/pages/public/search'
import Searchpage from '@/pages/public/searchpage'
import Videopage from '@/pages/public/videopage'
import Comment from '@/pages/public/comment'
import Articlepage from '@/pages/public/articlepage'
import Userblog from '@/pages/public/userblog'
import Chatboxes from '@/pages/public/chatboxes'
/*zcc end*/
import Find from '@/pages/find'
import Type from '@/pages/type'
import User from '@/pages/user'
import Productcon from '@/pages/productcon'
import Findex from '@/pages/find/findex'
import Tindex from '@/pages/type/tindex'
import Uindex from '@/pages/user/uindex'
import Sponsor from '@/pages/find/find-child/sponsor'
import SponsorAdd from '@/pages/find/find-child/sponsor-addition'
import Setting from '@/pages/user/setting'
import Bindphone from '@/pages/user/bindphone'
import Userinfo from '@/pages/user/userinfo'
import Address from '@/pages/user/address'
import About from '@/pages/user/about'
import Sendbug from '@/pages/user/sendbug'
import Help from '@/pages/user/help'
import Login from '@/pages/login'
import Reg from '@/pages/reg'
import Startpage from "@/pages/startpage"
import Leadpage from "@/pages/leadpage"
import SponsorEnter from '@/pages/find/find-child/sponsor-enter'
import Beauty from '@/pages/find/find-child/beauty'
import Topics from '@/pages/find/find-child/topics'
import Commodity from '@/pages/find/find-child/commodity'
import Blusher from '@/pages/type/type-child/blusher'
import Messages from '@/pages/user/messages'
import Fens from '@/pages/user/fens'
import Follow from '@/pages/user/follow'
import Gambitmsg from '@/pages/user/gambitmsg'
import Newfriendmsg from '@/pages/user/newfriendmsg'
import Collectgambit from '@/pages/user/collectgambit'
import Collectproduct from '@/pages/user/collectproduct'
import Collectvideo from '@/pages/user/collectvideo'
import Signin from "@/pages/user/signin"


Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/main',
      component: Main,
      children:[
        {
          path: '/',
          
          component: Mindex,
          children:[
          {
            path: '/',
            name: 'Showbeauty',
            component: Showbeauty
          },
          {
            path: '/changebeauty',
            name: 'Changebeauty',
            component: Changebeauty,
            redirect:"/changebeauty/beautyvideo",
            children:[
              {
                path: 'beautyvideo',
                name: 'Beautyvideo',
                component: Beautyvideo
              },
              {
                path: 'goddes',
                name: 'Goddes',
                component: Goddes
              }
            ]
          }
        ]
      }, 
      {
        path: '/goodarticle',
        name: 'Goodarticle',
        component: Goodarticle
      },
      {
        path: '/showactivity',
        name: 'Showactivity',
        component: Showactivity
      },
      {
          path: '/search',
          name: 'Search',
          component: Search
      },
      {
          path: '/searchpage',
          name: 'Searchpage',
          component: Searchpage
      },
      {
          path: '/videopage',
          name: 'Videopage',
          component: Videopage
      },
      {
          path: '/comment',
          name: 'Comment',
          component: Comment
      },
      {
          path: '/articlepage',
          name: 'Articlepage',
          component: Articlepage
      },
      {
          path: '/userblog',
          name: 'Userblog',
          component: Userblog
      },
      {
          path: '/chatboxes',
          name: 'Chatboxes',
          component: Chatboxes
      }

      ]
    },
    {
      path: '/find',
      component: Find,
      children:[
        {
          path: '',
          name: 'Findex',
          component: Findex
        },
        {
          path:'/sponsor',
          name: 'Sponsor',
          component:Sponsor 
        },
        {
          path:'/sponsor-enter',
          name:'SponsorEnter',
          component:SponsorEnter
        },
        {
           path:'/Sponsor-addition',
           name:'SponsorAdd',
           component:SponsorAdd
        },
        {
          path:'/beauty',
          name:'Beauty',
          component:Beauty
        },
        {
          path:'/topics',
          name:'Topics',
          component:Topics
        },
        {
          path:'/commodity',
          name:'Commodity',
          component:Commodity
        }

      ]
    },
    {
      path: '/type',
      component: Type,
      children:[
        {
          path: '',
          name: 'Tindex',
          component: Tindex
        },
        {
          path:'/blusher',
          name:'Blusher',
          component:Blusher
          
        }
      ]
    },
    {
      path: '/user',
      component: User,
      children:[
        {
          path: '/',
          name: 'Uindex',
          component: Uindex
        },
        {
          path: '/setting',
          name: 'Setting',
          component: Setting
        },
        {
          path: '/bindphone',
          name: 'Bindphone',
          component: Bindphone
        },
        {
          path: '/userinfo',
          name: 'Userinfo',
          component: Userinfo
        },
        {
          path: '/address',
          name: 'Address',
          component: Address
        },
        {
          path: '/about',
          name: 'About',
          component: About
        },
        {
          path: '/sendbug',
          name: 'Sendbug',
          component: Sendbug
        },
        {
          path: '/help',
          name: 'Help',
          component: Help
        },
        {
          path:'/messages',
          name:'Messages',
          component:Messages
        },
        {
          path:'/fens',
          name:'Fens',
          component:Fens
        },
        {
          path:'/follow',
          name:'Follow',
          component:Follow
        },
        {
          path:'/gambitmsg',
          name:'Gambitmsg',
          component:Gambitmsg
        },
        {
          path:'/newfriendmsg',
          name:'Newfriendmsg',
          component:Newfriendmsg
        },
        {
          path:'/collectgambit',
          name:'Collectgambit',
          component:Collectgambit
        },
        {
          path:'/collectproduct',
          name:'Collectproduct',
          component:Collectproduct
        },
        {
          path:'/collectvideo',
          name:'Collectvideo',
          component:Collectvideo
        },
        {
          path:'/signin',
          name:'Signin',
          component:Signin
        }

        
      ]
    },
    {
      path:'/login',
      component:Login,
      name:"Login"
    },
    {
      path:'/reg',
      component:Reg,
      name:'Reg'
    },
    {
      path:'/',
      component:Startpage,
      name:'Startpage'
    },
    {
      path:'/leadpag',
      component:Leadpage,
      name:'Leadpage'
    },
    {
        path:'/productcon',
        component:Productcon,
        name:'Productcon'
    }
  ]
})
